<template>
  <div class="dongtai-cell">
    <div>
      <img :src="`${item.img}`" alt="" />
      <div>
        <div class="text">
          <router-link to="#">{{ item.title }}</router-link>
          <span>{{ item.date }}</span>
        </div>

        <p>
          {{ item.des }}
        </p>
        <router-link class="xq" to="/xiangqing"
          >查看详情
          <sub>ˇ</sub>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["item"],
};
</script>

<style lang="scss" scoped>
.dongtai-cell > div {
  border-bottom: 1px dotted #e3e3e3;
  width: 850px;

  padding: 30px 0 0 0px;
  display: flex;
  justify-content: space-between;

  > div {
    position: relative;
  }
  > img {
    width: 210px;
    height: 140;
    margin: 0px 20px 45px 0px;
  }
  > div > p {
    color: gray;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
    text-indent: 2em;
  }
  .xq {
    color: #fbb957;
    text-decoration: none;
    font-size: 14px;
    vertical-align: bottom;
    position: absolute;
    right: 0;
  }
}
.text {
  display: flex;
  justify-content: space-between;

  > a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    &:hover {
      color: #fbb957;
    }
  }

  > span {
    color: #bdbdbd;
    font-size: 12px;
  }
}
</style>
